package org.jeecg.modules.personnel.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: work_personnel
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Data
@TableName("work_personnel")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="work_personnel对象", description="work_personnel")
public class WorkPersonnel implements Serializable {
    private static final long serialVersionUID = 1L;

	/**UUID
*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "UUID")
    private String id;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
	/**密码*/
	@Excel(name = "密码", width = 15)
    @ApiModelProperty(value = "密码")
    private String password;
	/**性别（1：男 2：女）*/
	@Excel(name = "性别（1：男 2：女）", width = 15)
    @ApiModelProperty(value = "性别（1：男 2：女）")
    private Integer sex;
	/**电话号码*/
	@Excel(name = "电话号码", width = 15)
    @ApiModelProperty(value = "电话号码")
    private String telephone;
	/**电子邮件*/
	@Excel(name = "电子邮件", width = 15)
    @ApiModelProperty(value = "电子邮件")
    private String email;
	/**生日*/
	@Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;
	/**人员类型：1，员工 2，顾客*/
	@Excel(name = "人员类型：1，员工 2，顾客", width = 15)
    @ApiModelProperty(value = "人员类型：1，员工 2，顾客")
    private Integer typeId;
	/**人员状态：默认1，2为休假状态*/
	@Excel(name = "人员状态：默认1，2为休假状态", width = 15)
    @ApiModelProperty(value = "人员状态：默认1，2为休假状态")
    private Integer state;
	/**员工编号  唯一非空*/
	@Excel(name = "员工编号  唯一非空", width = 15)
    @ApiModelProperty(value = "员工编号  唯一非空")
    private String number;
	/**微信公众平台id*/
	@Excel(name = "微信公众平台id", width = 15)
    @ApiModelProperty(value = "微信公众平台id")
    private String openId;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**md5密码盐*/
	@Excel(name = "md5密码盐", width = 15)
    @ApiModelProperty(value = "md5密码盐")
    private String salt;
    @Excel(name = "微信头像", width = 15)
    @ApiModelProperty(value = "微信头像")
	private String avatarUrl;
}
